package com.crm.miaohe.service;

import com.crm.miaohe.controller.authentication.request.LoginRequest;
import com.crm.miaohe.controller.authentication.request.user.AuthUserQueryRequest;
import com.crm.miaohe.controller.authentication.request.user.AuthUserRequest;
import org.springframework.security.oauth2.common.OAuth2AccessToken;

public interface AuthenticationService {
    OAuth2AccessToken authenticate(LoginRequest request, String platform);
    OAuth2AccessToken authenticateEncode(LoginRequest request, String platform);
    OAuth2AccessToken refreshToken(String refreshToken);
    void logout(String accessToken);
    boolean checkUserByUserNameOrPhoneNumber(AuthUserQueryRequest registerRequest);
}
